package com.ruoyi.web.controller.docter;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.docter.domain.DocCheck;
import com.ruoyi.docter.service.DocCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/docter/examine")
public class DocCheckController extends BaseController {
    @Autowired
    private DocCheckService docCheckService;
    @RequestMapping("/queryNeedCheck")
    public TableDataInfo checkList(DocCheck docCheck){
        List<DocCheck> docChecks = docCheckService.selectCheck(docCheck);
        return getDataTable(docChecks);
    }
    @RequestMapping("/queryCheckName")
    public TableDataInfo checkName(){
        List<DocCheck> docChecks = docCheckService.selectName();
        return getDataTable(docChecks);
    }



}
